﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EFMagic.Schema
{
    [Serializable]
    public abstract class EFMConstraint
    {
        public string Name { get; set; }
        public Guid ColumnId { get; set; }
    }

    [Serializable]
    public class EFMPrimaryKey : EFMConstraint { }

    [Serializable]
    public class EFMUnique : EFMConstraint { }

    [Serializable]
    public class EFMForeignKey : EFMConstraint
    {
        public Guid RTableId { get; set; }
        public Guid RColumnId { get; set; }
    }
}
